/*
 * Microsoft .NET  2.0+ version of Sphinx searchd client (Sphinx API)
 * 
 * Copyright (c) 2009, Shaun Berryman
 * All rights reserved
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License. You should have
 * received a copy of the GPL license along with this program; if you
 * did not, you can find it at http://www.gnu.org/
 */

using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;

namespace SphinxSearchApi.Model
{
    public class Match
    {
        /// <summary>
        /// Matched document ID.
        /// </summary>
        public long DocId;

        /// <summary>
        /// Matched document weight.
        /// </summary>
        public int Weight;

        /// <summary>
        /// Matched document attribute values.
        /// </summary>
        public ArrayList AttrValues;

        /// <summary>
        /// Trivial constructor.
        /// </summary>
        /// <param name="docId"></param>
        /// <param name="weight"></param>
        public Match(long docId, int weight)
        {
            this.DocId = docId;
            this.Weight = weight;
            this.AttrValues = new ArrayList();
        }
    }
}
